home *** CD-ROM | disk | FTP | other *** search
- On Error Resume Next
-
- ' Declare variables
- Dim WshShell
- Dim strDate
- Dim strDay, strMonth, strYear
-
- ' Get the current DD/MM/YY as strings.
- strDay = Right("00" & Cstr(Day(Date())),2)
- strMonth = Right("00" & Cstr(Month(Date())),2)
- strYear = Cstr(Year(Date()))
-
- ' Compose strDate
- strDate = strDay & "/" & strMonth & "/" & strYear
-
- ' Create shell object
- Set WshShell = WScript.CreateObject("WScript.Shell")
-
- ' Create registry key
- WshShell.RegWrite "HKLM\SOFTWARE\GFI Fax & Voice\LNSS\InstalledOn", strDate
-
- ' Install Scheduled Scan Service
- WshShell.Run "sscansvc.exe /INSTALL /SILENT", 0, true
-